gtkimagemenuitem: create widget for action icons lazily
authorLars Uebernickel <lars.uebernickel@canonical.com>
Mon, 12 Jan 2015 08:04:11 +0000 (09:04 +0100)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 19 Jan 2015 00:45:13 +0000 (19:45 -0500)
commit931a479da9abc37424a2b4757117ebd766e2e3c7
tree9e12b64336ce7c55b81d14d14ee3cdcb9e662c70
parent858c80f33e335b45c4c7177e63a981123bd7bd17
gtkimagemenuitem: create widget for action icons lazily

GtkImageMenuItem always packs a GtkImage when it is synced with a
related action. This is unnecessary when the action doesn't have an icon
set and results in excess padding when a GtkImageMenuItem is put in a
menu bar (GtkUIManager does this).

Fix this by not creating the GtkImage for icon-less actions.

https://bugzilla.gnome.org/show_bug.cgi?id=742181
gtk/deprecated/gtkimagemenuitem.c